Holds information of a tree view item. More...
Public Member Functions | |
| Item () | |
| virtual | ~Item () |
| Item * | addChild (Item *child) |
| Item * | getChild (unsigned int index) const |
| void | disavowChild (Item *child) |
| void | setText (const nkMemory::StringView &text) |
| nkMemory::StringView | getText () const |
| void | setParentTree (TreeView *parent) |
| TreeView * | getParentTree () const |
| void | setParentItem (Item *item) |
| Item * | getParentItem () const |
| void | setPrecedingItem (Item *item) |
| Item * | getPrecedingItem () const |
| void | setAttachedData (void *data) |
| void * | getAttachedData () const |
| void | exportIntrospection (nkExport::Node *rootNode) |
Holds information of a tree view item.
| nkWinUi::TreeView::Item::Item | ( | ) |
Constructor.
|
virtual |
Destructor.
Adds a child item.
| child | The item to add as a child. |
| Item* nkWinUi::TreeView::Item::getChild | ( | unsigned int | index | ) | const |
| index | The index of the item wanted. |
| void nkWinUi::TreeView::Item::disavowChild | ( | Item * | child | ) |
Makes the item forget about a child.
| child | The item to forget. |
| void nkWinUi::TreeView::Item::setText | ( | const nkMemory::StringView & | text | ) |
Sets the text displayed for the item.
| text | The text to show. |
| nkMemory::StringView nkWinUi::TreeView::Item::getText | ( | ) | const |
| void nkWinUi::TreeView::Item::setParentTree | ( | TreeView * | parent | ) |
Sets the parent tree view.
| parent | The parent window to set. |
| TreeView* nkWinUi::TreeView::Item::getParentTree | ( | ) | const |
| void nkWinUi::TreeView::Item::setParentItem | ( | Item * | item | ) |
Sets the parent item, if any.
| item | The parent item to set. |
| Item* nkWinUi::TreeView::Item::getParentItem | ( | ) | const |
| void nkWinUi::TreeView::Item::setPrecedingItem | ( | Item * | item | ) |
Sets the preceding item in the tree view.
| item | The item that should be preceding in the tree view. |
| Item* nkWinUi::TreeView::Item::getPrecedingItem | ( | ) | const |
| void nkWinUi::TreeView::Item::setAttachedData | ( | void * | data | ) |
Sets user data attached to the item.
| data | The data to attach. |
| void* nkWinUi::TreeView::Item::getAttachedData | ( | ) | const |
| void nkWinUi::TreeView::Item::exportIntrospection | ( | nkExport::Node * | rootNode | ) |
Basic export capabilities.
| rootNode | The tree to export into. |